
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import Filter from '@/components/Filter.vue';


import App from './App.vue'
import router from './router'
import 'animate.css';

const app = createApp(App)

app.component('Filter',Filter) //全局注册
app.directive('color',(el, binding) => {
    // 这会在 `mounted` 和 `updated` 时都调用
    el.style.color = binding.value
  })
app.use(createPinia())
app.use(router)
app.mount('#app')
